﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHEntity" namespace="NHEntity">
  <class name="NHEntity.UserEntity" table="[User]">
    <id name="IdUser" column ="IdUser" type="int">
      <generator class="identity"/>
    </id>
    <property name="Login" type="String" not-null="true"/>
    <property name="Password" type="String" not-null="true"/>
    <!--<bag name="UserRoleLines" inverse="true" access="field.camelcase" cascade="all-delete-orphan">
      <key column="IdUser"/>
      <one-to-many class="NHEntity.UserRoleEntity"/>
    </bag>-->
  </class>
</hibernate-mapping>